package com.translate.web.param;
import java.math.BigDecimal;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import com.translate.web.constant.ValidateCondtionAndMessage;
import com.translate.web.param.contract.IMenuAddParam;
public class MenuAddParam implements IMenuAddParam {// 父级ID
@NotNull
@Min(value = ValidateCondtionAndMessage.MIN_ID, message = ValidateCondtionAndMessage.MIN_ID_MSG)
private Long parentId;
// 菜单类型 0 按钮 1列表
@NotNull
@Min(value = ValidateCondtionAndMessage.MIN_STATUS, message = ValidateCondtionAndMessage.MIN_STATUS_MSG)
@Max(value = ValidateCondtionAndMessage.MAX_STATUS, message = ValidateCondtionAndMessage.MAX_STATUS_MSG)
private Byte type;
// 菜单名称
@NotNull
@Pattern(regexp = ValidateCondtionAndMessage.CHINESE_ENGLISH_NUMBER_UNDERLINE_BY_SERIESDESCRIPTION, message = ValidateCondtionAndMessage.CHINESE_ENGLISH_NUMBER_UNDERLINE_BY_SERIESDESCRIPTION_MSG)
private String title;
// 菜单级数
@NotNull
@Min(value = ValidateCondtionAndMessage.MIN_ID, message = ValidateCondtionAndMessage.MIN_ID_MSG)
private Integer level;
// 菜单排序
@NotNull
@Min(value = ValidateCondtionAndMessage.MIN_ID, message = ValidateCondtionAndMessage.MIN_ID_MSG)
private Integer sort;
// 前端名称
@NotNull
@Pattern(regexp = ValidateCondtionAndMessage.CHINESE_ENGLISH_NUMBER_UNDERLINE_BY_SERIESDESCRIPTION, message = ValidateCondtionAndMessage.CHINESE_ENGLISH_NUMBER_UNDERLINE_BY_SERIESDESCRIPTION_MSG)
private String name;
// 前端图标
@NotNull
@Pattern(regexp = ValidateCondtionAndMessage.CHINESE_ENGLISH_NUMBER_UNDERLINE_BY_SERIESDESCRIPTION, message = ValidateCondtionAndMessage.CHINESE_ENGLISH_NUMBER_UNDERLINE_BY_SERIESDESCRIPTION_MSG)
private String icon;
// 前端隐藏
@NotNull
@Min(value = ValidateCondtionAndMessage.MIN_ID, message = ValidateCondtionAndMessage.MIN_ID_MSG)
private Integer hidden;



public Long getParentId() {
        return parentId;
    }
public void setParentId(Long parentId) {
        this.parentId = parentId;
    }
public Byte getType() {
        return type;
    }
public void setType(Byte type) {
        this.type = type;
    }


public String getTitle() {
        return title;
    }
public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }
public Integer getLevel() {
        return level;
    }
public void setLevel(Integer level) {
        this.level = level;
    }
public Integer getSort() {
        return sort;
    }
public void setSort(Integer sort) {
        this.sort = sort;
    }
public String getName() {
        return name;
    }
public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }
public String getIcon() {
        return icon;
    }
public void setIcon(String icon) {
        this.icon = icon == null ? null : icon.trim();
    }
public Integer getHidden() {
        return hidden;
    }
public void setHidden(Integer hidden) {
        this.hidden = hidden;
    }
}